package com.lanmao.ems.dao.impl;

import com.lanmao.emc.enums.DBType;
import org.springframework.stereotype.Repository;

/**
 * 描述：
 *
 * @author lanmao
 * @since 2024年11月11日 20:38
 */
@Repository
public class MysqlUpgradeDaoImpl extends UpgradeDaoImpl {

    @Override
    public String getTableExistSql() {
       return "SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME in (";
    }


    @Override
    public DBType getDbType() {
        return DBType.MYSQL;
    }
}